package cn.gson.crm.model.entity;



import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import lombok.Data;

/**
 * 关系维护记录
 * @author GHOST
 *
 */

@Entity
@Table(name="tb_wh_student_Maintenance_record")
@Data
public class WhMaintenanceRecord {
	
	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	@Column(name="tb_maintenance_record_id")
	private Long id;
	
	/**
	 * 维护内容
	 */
	@Column(name="wh_content")
	private String whcontent;
	
	/**
	 * 维护时间
	 */
	@Column(name="wh_date")
	private String whdate;
	
	/**
	 * 维护方式
	 */
	@Column(name="wh_mode")
	private String whmode;
	
	/**
	 * 下次维护时间
	 */
	@Column(name="next_date")
	private String nextDate;
	
	/**
	 * 学员外键
	 */
	@ManyToOne()
	@JoinColumn(name="student_id")
	private Student student;
	
	
	/**
	 * 员工外键
	 */
	@ManyToOne()
	@JoinColumn(name="emp_id")
	private Emp emp;
	
	
	
	/**
	 * 是否删除
	 */
	@Column(name="is_delete")
	private Long delete;
	
}
